package com.spring.membercardapi.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.math.BigDecimal;

import com.spring.membercardapi.web.model.*;
import com.spring.membercardapi.web.requestmodel.ApplicationUpdate;



public interface MemberCardApiMapper {
	//List<CardType> 
	List<HashMap> getCardTypeList();
	
	List<PackageDetail> getPackageDetail(String package_id);
	
	
	int applyCardCheckCoupon(String coupon_code);
	
	int applyCardUpdateCoupon(HashMap hm);
	
	int applyCardInsertGuardian(HashMap hm);
	
	int applyCard(HashMap hm);
	
	List<DataDictionary> getDataDictionaryList(String type);
	List<Application> getApplicationList(HashMap hm);
	
	int updateApplicationCheckID(String application_id);
	int updateApplication(HashMap hm);
	
	int updateGuardian(HashMap hm);
	int deleteGuardian(String guardian_id);
	
	
	int addApplicationGuardianCheckApplicationID(String membercard_application_id);
	int addApplicationGuardianCheckID(HashMap hm);
	int addApplicationGuardian(HashMap hm);
	
	int cancelApplicationCheceApplicationId(String membercard_application_id);
	int cancelApplicationDeleteGuardian(String membercard_application_id);
	int cancelApplication(HashMap hm);
	
	List<Card> getCardList(HashMap hm);
	List<CardDetail> getCardDetaiList(String membercard_id);
	
	
	int checkOutCheckCard(String membercard_id);
	BigDecimal checkOutRemainQuantity(HashMap hm);
	int checkOutUpdateRemainQuantity(HashMap hm);
	int checkOutInsertConsumeHis(HashMap hm);
	//int checkOutInsertJournalAccount(HashMap hm);
	
	List<Consume> getConsumeList(HashMap hm);
	
	List<PointBill> getPointBillList(HashMap hm);
	int createCouponCode(HashMap hm);
	List<MyCoupon> getMyCouponList(HashMap hm);
	
	BigDecimal getPackagePrice(HashMap hm);
	
	int insertApplicationPackage(HashMap hm);
	
	int applyCardBackground(HashMap hm);
	BigDecimal getCouponCodeAmount(HashMap hm);
	
	
	int checkApplicationID(HashMap hm);
	HashMap getApplicationContent(HashMap hm);
	String[] getOrderProduct(HashMap hm);
	HashMap getKidsAndRegion(HashMap hm);
	HashMap getPackageID(HashMap hm);
	String getMemberCount(HashMap hm);
	int checkCardNumber(HashMap hm);
	int insertMembercard(HashMap hm);
	
	int insertContractPackage(HashMap hm);
	
	int insertCardDetail(HashMap hm);
	int updateApplicationAfterPay(HashMap hm);
	HashMap getCoupon(HashMap hm);
	
	List<ApplicationB> getApplicationByID(HashMap hm);
	List<HashMap<String,Object>> checkCoupon(HashMap hm);
	
	int insertContractBabys(Map<String,Object> hm);
	int deleteApplicationsPackages(String applicationID);
	int updateApplication2(ApplicationUpdate application);
	int deleteContractBaby(String applicationID);
	
	String getDistinctMemberCount(String kids_parkID);
	
	String getOrderIDByContractID(String contractID);
	
	int updatePaymentStatus(String contractID);
}
